package com.qo.qsdk.ui.base;

import android.content.Context;
import android.graphics.Typeface;
import android.util.AttributeSet;

import androidx.annotation.Nullable;
import androidx.appcompat.widget.AppCompatTextView;


public class QTextView extends AppCompatTextView {

    public QTextView(Context context) {
        super(context);
        init(null);
    }

    public QTextView(Context context, AttributeSet attrs) {
        super(context, attrs);
        init(attrs);
    }

    public QTextView(Context context, AttributeSet attrs,
                      int defStyle) {
        super(context, attrs, defStyle);
        init(attrs);
    }

    public void init(AttributeSet attrs){
        if (!isInEditMode()) {
            Typeface tf = Typeface.createFromAsset(getContext().getAssets(), "avo.ttf");
            setTypeface(tf);
        }
    }
}
